<template>
    <div class="sequence">
        <el-input-number class="r5" controls-position="right" size="mini" :min="0" :max="99999999" v-model="num"/>
        <i v-show="num != value" class="sure-btn green el-icon-check" @click="sure"/>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                num: 0
            }
        },
        props: {
            value: 0,
        },
        created() {
            this.num = parseInt(this.value);
        },
        methods: {
            sure() {
                this.$emit('change', this.num);
            }
        }
    }
</script>
